import React, {PropTypes} from 'react';
import {Input, Row, Col, DatePicker} from 'antd';

const Search = Input.Search;

function Filter({keyword,onSearch,onChange}) {
    function onInputSearch(even) {
        onSearch(even.target.value);
    }

    return (
        <Row>
            <Col span={6}>
                <Input placeholder="请输入" onChange={onInputSearch} value={keyword}/>
            </Col>
        </Row>
    )
}

Filter.propTypes = {
    keyword: PropTypes.any,
    onSearch: PropTypes.func,
    onChange: PropTypes.func
};

export default Filter;